package com.aspose.cells;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;

public class Series {
   private int f;
   private ChartPointCollection g;
   private zor h;
   zpp a = null;
   private int i = -1;
   private SeriesCollection j;
   private Object k;
   String b = null;
   private String l = "";
   private zik m;
   private zik n;
   private zik o;
   private TrendlineCollection p;
   int c = 0;
   private DataLabels q;
   private ziz r;
   private boolean s;
   private ErrorBar t;
   private ErrorBar u;
   private boolean v = true;
   private int w = -1;
   private Line x = null;
   private ShapePropertyCollection y;
   private ShapePropertyCollection z;
   int d;
   int e;

   int a() {
      return this.f;
   }

   void a(int var1) {
      this.f = var1;
   }

   void b(int var1) {
      this.i = var1;
   }

   public void move(int count) {
      int var10000 = this.f + count;
      int var3;
      int var4;
      if (count < 0) {
         var3 = this.B();
         var4 = this.B() + count;
         if (var4 < 0) {
            var4 = 0;
         }

         this.j.b(var3, var4);
      } else {
         var3 = this.B();
         var4 = var3 + count + 1;
         if (var4 >= this.j.getCount()) {
            var4 = this.j.getCount() - 1;
         }

         this.j.c(var3, var4);
      }

   }

   public ChartPointCollection getPoints() {
      if (this.g == null) {
         this.g = new ChartPointCollection(this);
      }

      return this.g;
   }

   ChartPointCollection b() {
      return this.g;
   }

   void c() {
      this.g = null;
   }

   public Area getArea() {
      return this.f().e();
   }

   Area d() {
      return this.h == null ? null : this.h.h();
   }

   /** @deprecated */
   public Line getLine() {
      return this.f().f();
   }

   public Line getBorder() {
      return this.f().f();
   }

   Line e() {
      return this.h == null ? null : this.h.g();
   }

   zor f() {
      if (this.h == null) {
         this.h = new zor(this);
         if (this.r.d() != null) {
            this.h.a(this.r.d(), (CopyOptions)null);
         }
      }

      return this.h;
   }

   void a(zor var1) {
      this.h = var1;
   }

   zor g() {
      return this.h;
   }

   Series(WorksheetCollection sheets, SeriesCollection nSeries, int seriesIndex) {
      this.f = seriesIndex;
      this.j = nSeries;
      this.a = new zpp();
   }

   SeriesCollection h() {
      return this.j;
   }

   WorksheetCollection i() {
      return this.j.b();
   }

   Worksheet j() {
      return this.j.a();
   }

   public String getName() {
      if (this.k == null) {
         return "";
      } else if (this.k instanceof String) {
         return (String)this.k;
      } else if (this.k instanceof byte[]) {
         byte[] var1 = (byte[])((byte[])this.k);
         return this.i().b().a(-1, -1, var1, 0, 0, false);
      } else {
         return "";
      }
   }

   public void setName(String value) {
      this.b = null;
      if (value == null) {
         this.k = null;
      } else {
         String var2 = value.trim();
         if ("".equals(var2)) {
            this.k = "";
            this.b = "";
         } else if (var2.charAt(0) != '=') {
            this.k = var2;
         } else {
            var2 = var2.substring(1);
            zik var3 = zin.a(this.i(), this.j(), var2);
            this.k = var3.f();
         }
      }
   }

   private String E() {
      int var1 = 0;
      ArrayList var2 = new ArrayList();
      SeriesCollection var3 = this.h() != null ? this.h() : null;
      zja var4 = var3 != null ? var3.d().c : null;
      if (var4 != null && var3 != null) {
         Iterator var5 = var4.iterator();

         while(var5.hasNext()) {
            ziz var6 = (ziz)var5.next();
            Iterator var7 = var3.iterator();

            while(var7.hasNext()) {
               Series var8 = (Series)var7.next();
               if (var8.t() && var8.s() == var6) {
                  zbnt var9 = new zbnt(var8);
                  var9.a(var1);
                  ++var1;
                  com.aspose.cells.b.a.a.ze.a(var2, (Object)var9);
               }
            }
         }

         Collections.sort(var2);

         for(int var10 = 0; var10 < var2.size(); ++var10) {
            zbnt var11 = (zbnt)var2.get(var10);
            if (var11.b() == this) {
               return "Series" + com.aspose.cells.b.a.zo.a(var10 + 1);
            }
         }
      }

      return "";
   }

   void a(String var1) {
      this.b = null;
      if (var1 == null) {
         this.k = null;
      } else {
         String var2 = var1.trim();
         if ("".equals(var2)) {
            this.k = "";
            this.b = "";
         } else if (var2.charAt(0) != '=') {
            this.k = var2;
         } else {
            var2 = var2.substring(1);

            try {
               zik var3 = zin.a(this.i(), this.j(), var2);
               this.k = var3.f();
            } catch (Exception var4) {
               com.aspose.cells.a.c.zl.b(var4);
            }

         }
      }
   }

   void a(Object var1) {
      this.k = var1;
   }

   Object k() {
      return this.k;
   }

   public String getDisplayName() {
      Chart var1 = this.h().d();
      if (this.k == null) {
         return this.E();
      } else if (this.k instanceof String) {
         return (String)this.k;
      } else {
         boolean var2 = var1.getPivotSource() != null && var1.getPivotSource().length() > 0;
         if (var2 && this.b != null) {
            return this.b;
         } else {
            if (this.k instanceof byte[]) {
               boolean var3 = false;
               zik var4 = zin.a(this.i(), this.j());
               var4.a((byte[])((byte[])this.k()));
               boolean[] var5 = new boolean[]{var3};
               ArrayList var6 = var4.a(false, var2, var5);
               var3 = var5[0];
               if (var3) {
                  if (this.b != null) {
                     return this.b;
                  }
               } else if (var6 != null && var6.size() != 0) {
                  String var7 = "";

                  for(int var8 = 0; var8 < var6.size(); ++var8) {
                     zit var9 = (zit)var6.get(var8);
                     String var10 = this.a(var9, var1);
                     if ("".equals(var10)) {
                        var7 = var7 + " ";
                     } else {
                        var7 = var7 + this.a(var9, var1);
                     }

                     if (var8 != var6.size() - 1) {
                        var7 = var7 + " ";
                     }
                  }

                  return var7;
               }
            }

            return this.l;
         }
      }
   }

   void b(String var1) {
      this.l = var1;
   }

   String a(zit var1, Chart var2) {
      switch(var1.g) {
      case 1:
         if (var1.a != null && !"".equals(var1.a())) {
            double var3 = 0.0D;

            try {
               var3 = (Double)var1.a;
            } catch (Exception var8) {
               return var1.a();
            }

            String var5 = null;
            var5 = var1.c;
            if ((var5 == null || "".equals(var5)) && var1.b != 0) {
               var5 = var2.j().n().getSettings().e().d(var1.b);
            }

            DateTime var6 = CellsHelper.getDateTimeFromDouble(var3, var2.getWorksheet().getWorkbook().getSettings().getDate1904());
            if (var5 != null && "".equals(var5)) {
               var5 = null;
            }

            zxz var7 = var2.j().n().getSettings().e().a(var5, var6, false);
            return var7.h();
         }

         return var1.a();
      default:
         if (var1.a != null && !"".equals(var1.a())) {
            String var9 = null;
            var9 = var1.c;
            if ((var9 == null || "".equals(var9)) && var1.b != 0) {
               var9 = var2.j().n().getSettings().e().d(var1.b);
            }

            if (var9 != null && "".equals(var9)) {
               var9 = null;
            }

            zxz var4 = var2.j().n().getSettings().e().a(var9, var1.a, false);
            return var4.h();
         } else {
            return var1.a();
         }
      }
   }

   public int getCountOfDataValues() {
      return this.m == null ? 0 : this.m.k();
   }

   public boolean isVerticalValues() {
      if (this.m != null) {
         return this.m.m() != this.m.o();
      } else {
         return false;
      }
   }

   public String getValues() {
      return this.m == null ? null : this.m.h();
   }

   public void setValues(String value) {
      String var2 = this.c(value);
      if (var2 != null && !"".equals(var2)) {
         this.m = zin.a(this.i(), this.j(), var2);
         this.s = true;
         if (this.g != null) {
            this.g.b();
         }

      } else {
         this.m = null;
      }
   }

   private String c(String var1) {
      if (var1 == null) {
         return null;
      } else {
         var1 = var1.trim();
         if (var1 != null && !"".equals(var1)) {
            if (var1.charAt(0) == '=') {
               var1 = var1.substring(1);
            }

            return var1 != null && !"".equals(var1) ? var1 : null;
         } else {
            return null;
         }
      }
   }

   zik l() {
      return this.m;
   }

   void a(zik var1) {
      this.m = var1;
   }

   public String getXValues() {
      return this.n == null ? null : this.n.h();
   }

   public void setXValues(String value) {
      String var2 = this.c(value);
      if (var2 != null && !"".equals(var2)) {
         this.n = zin.a(this.i(), this.j(), var2);
      } else {
         this.n = null;
      }
   }

   zik m() {
      return this.n;
   }

   void b(zik var1) {
      this.n = var1;
   }

   public String getBubbleSizes() {
      return this.o == null ? null : this.o.h();
   }

   public void setBubbleSizes(String value) {
      String var2 = this.c(value);
      if (var2 != null && !"".equals(var2)) {
         this.o = zin.a(this.i(), this.j(), var2);
      } else {
         this.o = null;
      }
   }

   zik n() {
      return this.o;
   }

   void c(zik var1) {
      this.o = var1;
   }

   public TrendlineCollection getTrendLines() {
      if (this.p == null) {
         this.p = new TrendlineCollection(this);
      }

      return this.p;
   }

   TrendlineCollection o() {
      return this.p;
   }

   public boolean getSmooth() {
      if (this.h != null && this.h.n()) {
         return this.f().m();
      } else {
         return this.r.e() != null ? this.r.d().m() : false;
      }
   }

   public void setSmooth(boolean value) {
      this.f().b(value);
   }

   public boolean getShadow() {
      return this.h == null ? false : this.f().q();
   }

   public void setShadow(boolean value) {
      this.f().f(value);
   }

   public boolean getHas3DEffect() {
      if (ChartCollection.q(this.getType())) {
         if (this.h != null && this.h.p()) {
            return this.f().o();
         }

         if (this.r.d() != null) {
            return this.r.d().o();
         }
      }

      return false;
   }

   public void setHas3DEffect(boolean value) {
      if (ChartCollection.q(this.getType())) {
         this.f().d(value);
      }

   }

   public int getBar3DShapeType() {
      if (!ChartCollection.b(this.getType())) {
         return 0;
      } else if (this.h == null) {
         return this.r.d() == null ? 0 : this.r.d().c();
      } else {
         return this.f().c();
      }
   }

   public void setBar3DShapeType(int value) {
      if (ChartCollection.b(this.getType())) {
         this.f().a(value);
      }

   }

   void c(int var1) {
      this.f().b(var1);
   }

   /** @deprecated */
   public int getBarShape() {
      return this.getBar3DShapeType();
   }

   /** @deprecated */
   public void setBarShape(int value) {
      this.setBar3DShapeType(value);
   }

   void a(Series var1, CopyOptions var2) {
      this.a(this.j.d().c.a(var1.s().k()));
      if (var1.h != null) {
         this.h = new zor(this);
         this.h.a(var1.h, var2);
      }

      if (var1.t != null) {
         this.getXErrorBar().a((Line)var1.getXErrorBar());
      }

      if (var1.u != null) {
         this.getYErrorBar().a((Line)var1.getYErrorBar());
      }

      if (var1.k != null) {
         this.b = var1.b;
         if (var1.k instanceof String) {
            this.k = var1.k;
         } else if (var1.k instanceof byte[]) {
            zik var3 = zin.a(var1.i(), var1.j());
            var3.a((byte[])((byte[])var1.k));
            zik var4 = zin.a(this.i(), this.j());
            var4.a(var3, var1.j().m(), var2);
            this.k = var4.f();
         }
      }

      if (var1.m != null) {
         this.m = zin.a(this.i(), this.j());
         this.m.a(var1.m, this.j().m(), var2);
      }

      if (var1.n != null) {
         this.n = zin.a(this.i(), this.j());
         this.n.a(var1.n, this.j().m(), var2);
      }

      if (var1.o != null) {
         this.o = zin.a(this.i(), this.j());
         this.o.a(var1.o, this.j().m(), var2);
      }

      if (var1.q != null) {
         if (this.q == null) {
            this.q = new DataLabels(this, this.h().d());
         }

         this.q.a(var1.q, var2);
      } else {
         this.q = null;
      }

      if (var1.g != null && var1.g.a() != 0) {
         this.getPoints().a(var1.g, var2);
      }

      if (var1.p != null && var1.p.getCount() != 0) {
         this.getTrendLines().a(var1.getTrendLines());
      }

      this.f = var1.f;
      this.s = var1.s;
      if (var1.z != null) {
         this.z = new ShapePropertyCollection(this.j.d(), this, 8);
         this.z.a(var1.z, var2);
      }

      this.x = var1.x;
      if (var1.y != null) {
         this.y = new ShapePropertyCollection(this.r.a().a(), this, 15);
         this.y.a(var1.y, var2);
      }

      this.e(var1.z());
      this.d = var1.d;
      this.e = var1.e;
   }

   public DataLabels getDataLabels() {
      if (this.q == null) {
         this.q = new DataLabels(this, this.h().d());
      }

      return this.q;
   }

   DataLabels p() {
      return this.q;
   }

   int q() {
      return this.r.k();
   }

   public int getType() {
      return this.r.j();
   }

   public void setType(int value) {
      if (this.r.j() != value) {
         Chart var2 = this.j.d();
         if (this.j.getCount() == 1) {
            var2.setType(value);
         } else if (ChartCollection.b(value)) {
            var2.setType(value);
         } else if (ChartCollection.b(var2.getType())) {
            var2.setType(value);
         } else if (ChartCollection.r(value)) {
            throw new CellsException(0, "Some chart types could not be combined with other chart types.");
         } else if (ChartCollection.k(value) && ChartCollection.k(this.r.j())) {
            switch(value) {
            case 60:
               this.getBorder().setVisible(false);
               this.getMarker().setMarkerStyle(5);
               break;
            case 61:
               this.getBorder().setVisible(true);
               this.setSmooth(true);
               this.getMarker().setMarkerStyle(0);
               break;
            case 62:
               this.getBorder().setVisible(true);
               this.setSmooth(true);
               this.getMarker().setMarkerStyle(5);
               break;
            case 63:
               this.getBorder().setVisible(true);
               this.setSmooth(false);
               this.getMarker().setMarkerStyle(5);
               break;
            case 64:
               this.getBorder().setVisible(true);
               this.setSmooth(false);
               this.getMarker().setMarkerStyle(5);
            }

         } else {
            if (ChartCollection.n(value)) {
               switch(value) {
               case 37:
                  if (this.r.j() == 40) {
                     this.getMarker().setMarkerStyle(5);
                     return;
                  }
                  break;
               case 38:
                  if (this.r.j() == 41) {
                     this.getMarker().setMarkerStyle(5);
                     return;
                  }
                  break;
               case 39:
                  if (this.r.j() == 42) {
                     this.getMarker().setMarkerStyle(5);
                     return;
                  }
                  break;
               case 40:
                  if (this.r.j() == 37) {
                     this.getMarker().setMarkerStyle(0);
                     return;
                  }
                  break;
               case 41:
                  if (this.r.j() == 38) {
                     this.getMarker().setMarkerStyle(0);
                     return;
                  }
                  break;
               case 42:
                  if (this.r.j() == 39) {
                     this.getMarker().setMarkerStyle(0);
                     return;
                  }
               }
            }

            if (ChartCollection.o(this.r.j())) {
               label104:
               switch(value) {
               case 57:
                  switch(this.r.j()) {
                  case 58:
                     this.getArea().setFormatting(1);
                     this.getMarker().setMarkerStyle(5);
                     return;
                  case 59:
                     this.r.a(value);
                     return;
                  default:
                     break label104;
                  }
               case 58:
                  switch(this.r.j()) {
                  case 58:
                     this.getArea().setFormatting(1);
                     this.getMarker().setMarkerStyle(0);
                     return;
                  case 59:
                     this.r.a(value);
                     return;
                  default:
                     break label104;
                  }
               case 59:
                  this.r.a(value);
               }
            }

            ziz var3 = this.r;
            boolean var4 = var3.l() == 1;
            boolean var5 = var3.m();
            this.c();
            if (!ChartCollection.b(var3.j(), value)) {
               if (var3.m()) {
                  throw new CellsException(0, "Some chart types could not be combined with other chart types.");
               }

               var5 = true;
               if (!var2.c.b()) {
                  if (var4) {
                     this.r.a(value);
                     this.s().a(true);
                  } else {
                     int var8 = this.r.k();
                     this.r = new ziz(var2.c, value, true);
                     var2.c.a(this.r);
                  }

                  return;
               }

               if (!ChartCollection.b(var2.c.a(true).j(), value)) {
                  throw new CellsException(0, "Some chart types could not be combined with other chart types.");
               }
            }

            if (var4) {
               var2.c.c(this.r);
            }

            Iterator var6 = var2.c.iterator();

            while(var6.hasNext()) {
               ziz var7 = (ziz)var6.next();
               if (var7.m() == var5) {
                  if (var7.j() == value) {
                     this.r = var7;
                     return;
                  }

                  if (ChartCollection.a(var7.j(), value)) {
                     this.r = var7;
                     var7.a(value);
                     return;
                  }
               }
            }

            this.r = new ziz(var2.c, value, var5);
            var2.c.a(this.r);
         }
      }
   }

   void d(int var1) {
      this.r = this.j.d().c.a(0);
   }

   int r() {
      return this.r.j();
   }

   ziz s() {
      return this.r;
   }

   void a(ziz var1) {
      this.r = var1;
   }

   boolean t() {
      if (this.j.d().getPlotVisibleCells()) {
         return this.m == null ? false : this.m.b();
      } else {
         return true;
      }
   }

   public Marker getMarker() {
      return this.f().j();
   }

   Marker u() {
      return this.h == null ? null : this.h.k();
   }

   Marker v() {
      if (this.h != null && this.h.k() != null) {
         return this.h.k();
      } else {
         return this.r.e() != null ? this.r.e().k() : null;
      }
   }

   /** @deprecated */
   public int getMarkerStyle() {
      return this.getMarker().getMarkerStyle();
   }

   /** @deprecated */
   public void setMarkerStyle(int value) {
      this.getMarker().setMarkerStyle(value);
   }

   /** @deprecated */
   public int getMarkerSize() {
      return this.getMarker().getMarkerSize();
   }

   /** @deprecated */
   public void setMarkerSize(int value) {
      if (value >= 2 && value <= 72) {
         this.getMarker().setMarkerSize(value);
      }

   }

   /** @deprecated */
   public Color getMarkerForegroundColor() {
      return this.getMarker().d();
   }

   /** @deprecated */
   public void setMarkerForegroundColor(Color value) {
      this.getMarker().a(value);
   }

   /** @deprecated */
   public int getMarkerForegroundColorSetType() {
      return this.getMarker().e();
   }

   /** @deprecated */
   public void setMarkerForegroundColorSetType(int value) {
      this.getMarker().c(value);
   }

   /** @deprecated */
   public Color getMarkerBackgroundColor() {
      return this.getMarker().f();
   }

   /** @deprecated */
   public void setMarkerBackgroundColor(Color value) {
      this.getMarker().b(value);
   }

   /** @deprecated */
   public int getMarkerBackgroundColorSetType() {
      return this.getMarker().g();
   }

   /** @deprecated */
   public void setMarkerBackgroundColorSetType(int value) {
      this.getMarker().d(value);
   }

   public boolean getPlotOnSecondAxis() {
      return this.r.m();
   }

   public void setPlotOnSecondAxis(boolean value) {
      if (this.r.m() != value) {
         if (ChartCollection.b(this.r.j())) {
            throw new CellsException(0, "If the chart type is 3-D chart type, you could not plot the series to the second axis ");
         } else if (!this.r.m() && this.j.a(false) <= 1) {
            throw new CellsException(0, "If there is only a series on the primary axis, you could not plot the series to the second axis ");
         } else {
            Chart var2 = this.j.d();
            if (this.r.l() == 1) {
               var2.c.c(this.r);
            }

            ziz var3 = var2.c.a(value);
            ziz var6;
            if (var3 == null) {
               var6 = new ziz(var2.c);
               var6.a(this.r, (CopyOptions)null);
               var6.a(value);
               this.r = var6;
               var2.c.a(var6);
               if (value && !var2.getCategoryAxis().isPlotOrderReversed() && !var2.getSecondCategoryAxis().isPlotOrderReversed() && var2.getSecondValueAxis().getCrossType() == 0) {
                  var2.getSecondCategoryAxis().setCrossType(1);
               }

            } else if (!ChartCollection.b(var3.j(), this.r.j())) {
               throw new CellsException(0, "Some chart types could not be combined with other chart types");
            } else {
               Iterator var4 = var2.c.iterator();

               while(var4.hasNext()) {
                  ziz var5 = (ziz)var4.next();
                  if (var5.m() == value) {
                     if (var5.j() == this.r.j()) {
                        this.r = var5;
                        return;
                     }

                     if (ChartCollection.a(var5.j(), this.r.j())) {
                        var5.a(this.r.j());
                        this.r = var5;
                        return;
                     }
                  }
               }

               var6 = new ziz(var2.c);
               var6.a(this.r, (CopyOptions)null);
               var6.a(value);
               this.r = var6;
               var2.c.a(var6);
            }
         }
      }
   }

   public ErrorBar getXErrorBar() {
      if (this.t == null) {
         this.t = new ErrorBar(this, false);
      }

      return this.t;
   }

   ErrorBar w() {
      return this.t;
   }

   public ErrorBar getYErrorBar() {
      if (this.u == null) {
         this.u = new ErrorBar(this, true);
      }

      return this.u;
   }

   ErrorBar x() {
      return this.u;
   }

   public boolean hasHiLoLines() {
      return this.r.n();
   }

   public void setHasHiLoLines(boolean value) {
      this.r.b(value);
   }

   public Line getHiLoLines() {
      return this.r.o();
   }

   public boolean hasSeriesLines() {
      return this.r.p();
   }

   public void setHasSeriesLines(boolean value) {
      this.r.d(value);
   }

   public Line getSeriesLines() {
      return this.r.q();
   }

   public boolean hasDropLines() {
      return this.r.r();
   }

   public void setHasDropLines(boolean value) {
      this.r.f(value);
   }

   public Line getDropLines() {
      return this.r.s();
   }

   public boolean hasUpDownBars() {
      return this.r.t();
   }

   public void setHasUpDownBars(boolean value) {
      this.r.h(value);
   }

   public DropBars getUpBars() {
      return this.r.u();
   }

   public DropBars getDownBars() {
      return this.r.v();
   }

   public boolean isColorVaried() {
      return this.r.y();
   }

   public void setColorVaried(boolean value) {
      this.r.j(value);
   }

   public short getGapWidth() {
      return (short)this.r.z();
   }

   public void setGapWidth(short value) {
      this.r.c(value);
   }

   public short getFirstSliceAngle() {
      return (short)this.r.A();
   }

   public void setFirstSliceAngle(short value) {
      this.r.d(value);
   }

   public short getOverlap() {
      return (short)this.r.B();
   }

   public void setOverlap(short value) {
      this.r.e(value);
   }

   public short getSecondPlotSize() {
      return (short)this.r.C();
   }

   public void setSecondPlotSize(short value) {
      this.r.f(value);
   }

   public int getSplitType() {
      return this.r.D();
   }

   public void setSplitType(int value) {
      this.r.g(value);
      this.r.k(false);
   }

   public double getSplitValue() {
      return this.r.E();
   }

   public void setSplitValue(double value) {
      this.r.a(value);
   }

   public boolean isAutoSplit() {
      return this.r.F();
   }

   public int getBubbleScale() {
      return this.r.G();
   }

   public void setBubbleScale(int value) {
      this.r.h(value);
   }

   public int getSizeRepresents() {
      return this.r.H();
   }

   public void setSizeRepresents(int value) {
      this.r.i(value);
   }

   public boolean getShowNegativeBubbles() {
      return this.r.I();
   }

   public void setShowNegativeBubbles(boolean value) {
      this.r.l(value);
   }

   public int getDoughnutHoleSize() {
      return this.r.J();
   }

   public void setDoughnutHoleSize(int value) {
      this.r.j(value);
   }

   public int getExplosion() {
      if (this.h != null && this.h.i() != null) {
         return this.h.i().a();
      } else {
         return this.r.e() != null && this.r.d().i() != null ? this.r.d().l().a() : 0;
      }
   }

   public void setExplosion(int value) {
      if (ChartCollection.c(this.r.j()) || ChartCollection.m(this.r.j())) {
         this.f().l().a(value);
         if (this.r.e() != null && this.r.d().i() != null) {
            this.r.d().l().a(value);
         }
      }

   }

   boolean y() {
      if (this.h != null && this.h.i() != null) {
         return false;
      } else {
         return this.r.e() == null || this.r.d().i() == null;
      }
   }

   public boolean hasRadarAxisLabels() {
      return this.r.L();
   }

   public void setHasRadarAxisLabels(boolean value) {
      this.r.n(value);
   }

   public boolean hasLeaderLines() {
      return this.a(1, this.r.M());
   }

   public void setHasLeaderLines(boolean value) {
      this.r.o(value);
      this.b(1, value);
   }

   int z() {
      return !this.v && this.w >= 0 ? this.w : this.a();
   }

   void e(int var1) {
      this.w = var1;
      this.v = false;
   }

   public Line getLeaderLines() {
      return this.r.N();
   }

   Line A() {
      return this.x;
   }

   int B() {
      for(int var1 = 0; var1 < this.h().getCount(); ++var1) {
         if (this.j.get(var1) == this) {
            return var1;
         }
      }

      return 0;
   }

   public LegendEntry getLegendEntry() {
      LegendEntryCollection var1 = this.h().d().getLegend().getLegendEntries();
      return var1.get(this.B());
   }

   boolean C() {
      if (this.h == null) {
         return this.r.e() != null ? this.r.d().c : false;
      } else {
         return this.h.c;
      }
   }

   public ShapePropertyCollection getShapeProperties() {
      if (this.z == null) {
         this.z = new ShapePropertyCollection(this.j.d(), this, 8);
      }

      return this.z;
   }

   ShapePropertyCollection D() {
      return this.z;
   }

   boolean a(int var1, boolean var2) {
      if (this.f(var1)) {
         return (this.d & var1) != 0;
      } else {
         return var2;
      }
   }

   boolean f(int var1) {
      return (this.e & var1) != 0;
   }

   void b(int var1, boolean var2) {
      this.e |= var1;
      if (var2) {
         this.d |= var1;
      } else {
         this.d &= ~var1;
      }

   }

   /** @deprecated */
   public int getBubbleSizeRepresents() {
      return this.getSizeRepresents();
   }

   /** @deprecated */
   public void setBubbleSizeRepresents(int value) {
      this.setSizeRepresents(value);
   }
}
